import { axios } from '@/utils/request'

/**
 * 违章隐患总数、趋势
 * @returns
 */
export function getTotalNumAndTrend () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEVadTotalAnalysis',
      method: 'get'
    })
}

/**
 * 违章级别
 * @returns
 */
 export function getVioTypeAnalysis () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEViolationTypeAnalysis',
      method: 'get'
    })
}

/**
 * 隐患级别
 * @returns
 */
 export function getDanTypeAnalysis () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEDangerTypeAnalysis',
      method: 'get'
    })
}

/**
 * 违章作业专业
 * @returns
 */
 export function getVioWorkSpeAnalysis () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEViolationWorkSpecialtyAnalysis',
      method: 'get'
    })
}

/**
 * 隐患作业专业
 * @returns
 */
 export function getDanWorkSpeAnalysis () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEDangerWorkSpecialtyAnalysis',
      method: 'get'
    })
}

/**
 * 二级隐患单位
 * @returns
 */
 export function getDanSecondAnalysis () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEDangerSecondaryUnitAnalysis',
      method: 'get'
    })
}

/**
 * 二级违章单位
 * @returns
 */
 export function getVioSecondAnalysis () {
    return axios({
      url: '/QHSEAnalysisPage/QHSEViolationSecondaryUnitAnalysis',
      method: 'get'
    })
}
